package com.yicong.ants.bean.scenic;

/**
 * 特惠景区
 * @author cchao
 * @version 2019-08-22.
 */
public class ChargeScenicItem extends ScenicItem {
    String price;
    String actual_price;
    float coupon;

    public ChargeScenicItem() {
    }

    public String getPrice() {
        return this.price;
    }

    public String getActual_price() {
        return this.actual_price;
    }

    public float getCoupon() {
        return this.coupon;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public void setActual_price(String actual_price) {
        this.actual_price = actual_price;
    }

    public void setCoupon(float coupon) {
        this.coupon = coupon;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ChargeScenicItem)) return false;
        final ChargeScenicItem other = (ChargeScenicItem) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$price = this.getPrice();
        final Object other$price = other.getPrice();
        if (this$price == null ? other$price != null : !this$price.equals(other$price))
            return false;
        final Object this$actual_price = this.getActual_price();
        final Object other$actual_price = other.getActual_price();
        if (this$actual_price == null ? other$actual_price != null : !this$actual_price.equals(other$actual_price))
            return false;
        if (Float.compare(this.getCoupon(), other.getCoupon()) != 0) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ChargeScenicItem;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $price = this.getPrice();
        result = result * PRIME + ($price == null ? 43 : $price.hashCode());
        final Object $actual_price = this.getActual_price();
        result = result * PRIME + ($actual_price == null ? 43 : $actual_price.hashCode());
        result = result * PRIME + Float.floatToIntBits(this.getCoupon());
        return result;
    }

    public String toString() {
        return "ChargeScenicItem(price=" + this.getPrice() + ", actual_price=" + this.getActual_price() + ", coupon=" + this.getCoupon() + ")";
    }
}
